package com.viewpagertext.json;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "playback_mode")
public class PlaybackMode {


    @PrimaryKey
    public int id = 1; // 使用固定ID，因为我们只存储一个实例
    public String mode = "list"; // 播放模式: "list", "random", "single"

    @Ignore
    public PlaybackMode(String mode) {
        this.mode = mode;
    }

    public PlaybackMode() {
        this.mode = "list";
        this.id = 1;
    }

    public void setId(int i) {
        this.id = i;
    }

    public int getId() {
        return id;
    }

    public void setMode(String list) {
        this.mode = list;
    }

    public String getMode() {
        return mode;
    }


}

